package com.cxy.datawarehouse.biz;

import com.cxy.datawarehouse.entity.StandardCodeDetail;
import com.cxy.datawarehouse.service.StandardCodeDetailService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Component
@Slf4j
public class StandardCodeDetailBiz {
    @Resource
    StandardCodeDetailService detailService;

    public List<StandardCodeDetail> getById(Long id){
        return detailService.getById(id);
    }

    public void update(StandardCodeDetail standardCodeDetail){
        detailService.update(standardCodeDetail);
    }

    public void create(StandardCodeDetail standardCodeDetail){
        detailService.create(standardCodeDetail);
    }

    public void deleteById(Long id){
        detailService.deleteById(id);
    }
}
